﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class AudioStudioAudioManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(AudioStudio.AudioManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 36, 8, 8);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "PlaySound", _m_PlaySound_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayGlobalSound", _m_PlayGlobalSound_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ValidateSound", _m_ValidateSound_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "StopSound", _m_StopSound_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayLastMusic", _m_PlayLastMusic_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayMusic", _m_PlayMusic_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "StopMusic", _m_StopMusic_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PlayVoice", _m_PlayVoice_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PauseVoice", _m_PauseVoice_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ResumeVoice", _m_ResumeVoice_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "StopVoice", _m_StopVoice_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ResetLastState", _m_ResetLastState_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetState", _m_SetState_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetState", _m_GetState_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "IsStateAt", _m_IsStateAt_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetSwitch", _m_SetSwitch_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRTPCValue", _m_SetRTPCValue_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PostTrigger", _m_PostTrigger_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadBank", _m_LoadBank_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadBank", _m_UnloadBank_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "RegistMusicPlayer", _m_RegistMusicPlayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UnRegistMusicPlayer", _m_UnRegistMusicPlayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SeekAndPlay", _m_SeekAndPlay_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "StopMusicPlayer", _m_StopMusicPlayer_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "MuteAudio", _m_MuteAudio_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UnmuteAudio", _m_UnmuteAudio_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PauseAudio", _m_PauseAudio_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ResumeAudio", _m_ResumeAudio_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "StartVoicePlay", _m_StartVoicePlay_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "EndVoicePlay", _m_EndVoicePlay_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "StartCustomMusic", _m_StartCustomMusic_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "EndCustomMusic", _m_EndCustomMusic_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PostEvent", _m_PostEvent_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "AddBasePath", _m_AddBasePath_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "SetDebugLogLevel", _m_SetDebugLogLevel_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SoundEnabled", _g_get_SoundEnabled);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "VoiceEnabled", _g_get_VoiceEnabled);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MusicEnabled", _g_get_MusicEnabled);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "SoundVolume", _g_get_SoundVolume);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "VoiceVolume", _g_get_VoiceVolume);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MusicVolume", _g_get_MusicVolume);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "VoiceLanguage", _g_get_VoiceLanguage);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DisableWwise", _g_get_DisableWwise);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SoundEnabled", _s_set_SoundEnabled);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "VoiceEnabled", _s_set_VoiceEnabled);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MusicEnabled", _s_set_MusicEnabled);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "SoundVolume", _s_set_SoundVolume);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "VoiceVolume", _s_set_VoiceVolume);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MusicVolume", _s_set_MusicVolume);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "VoiceLanguage", _s_set_VoiceLanguage);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DisableWwise", _s_set_DisableWwise);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "AudioStudio.AudioManager does not have a constructor!");
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "AudioStudio.AudioManager does not have a constructor!");
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlaySound_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.PlaySound( _eventName, _soundSource, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlaySound( _eventName, _soundSource );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PlaySound( _eventName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<AkCallbackType>(L, 2)&& translator.Assignable<System.Action>(L, 3)&& translator.Assignable<UnityEngine.GameObject>(L, 4)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    AkCallbackType _callbackType;translator.Get(L, 2, out _callbackType);
                    System.Action _callbackAction = translator.GetDelegate<System.Action>(L, 3);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlaySound( _eventName, _callbackType, _callbackAction, _soundSource );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<AkCallbackType>(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    AkCallbackType _callbackType;translator.Get(L, 2, out _callbackType);
                    System.Action _callbackAction = translator.GetDelegate<System.Action>(L, 3);
                    
                    AudioStudio.AudioManager.PlaySound( _eventName, _callbackType, _callbackAction );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.IEnumerable<AkCallbackType>>(L, 2)&& translator.Assignable<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3)&& translator.Assignable<UnityEngine.GameObject>(L, 4)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    System.Collections.Generic.IEnumerable<AkCallbackType> _callbackTypes = (System.Collections.Generic.IEnumerable<AkCallbackType>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable<AkCallbackType>));
                    System.Action<AkCallbackType, AkCallbackInfo> _callbackAction = translator.GetDelegate<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlaySound( _eventName, _callbackTypes, _callbackAction, _soundSource );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.IEnumerable<AkCallbackType>>(L, 2)&& translator.Assignable<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    System.Collections.Generic.IEnumerable<AkCallbackType> _callbackTypes = (System.Collections.Generic.IEnumerable<AkCallbackType>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable<AkCallbackType>));
                    System.Action<AkCallbackType, AkCallbackInfo> _callbackAction = translator.GetDelegate<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3);
                    
                    AudioStudio.AudioManager.PlaySound( _eventName, _callbackTypes, _callbackAction );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PlaySound!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlayGlobalSound_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.PlayGlobalSound( _eventName, _soundSource, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlayGlobalSound( _eventName, _soundSource );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PlayGlobalSound( _eventName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PlayGlobalSound!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ValidateSound_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    uint _playingID = LuaAPI.xlua_touint(L, 1);
                    string _eventName = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.ValidateSound( _playingID, _eventName, _soundSource, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 3)) 
                {
                    uint _playingID = LuaAPI.xlua_touint(L, 1);
                    string _eventName = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.ValidateSound( _playingID, _eventName, _soundSource );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.ValidateSound!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StopSound_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    float _fadeOutTime = (float)LuaAPI.lua_tonumber(L, 3);
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.StopSound( _eventName, _soundSource, _fadeOutTime, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    float _fadeOutTime = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    AudioStudio.AudioManager.StopSound( _eventName, _soundSource, _fadeOutTime );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _soundSource = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.StopSound( _eventName, _soundSource );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.StopSound( _eventName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.StopSound!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlayLastMusic_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.GameObject>(L, 1)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 2)) 
                {
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 2, out _trigger);
                    
                    AudioStudio.AudioManager.PlayLastMusic( _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.GameObject>(L, 1)) 
                {
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlayLastMusic( _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 0) 
                {
                    
                    AudioStudio.AudioManager.PlayLastMusic(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PlayLastMusic!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlayMusic_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _triggerFrom = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.PlayMusic( _eventName, _triggerFrom, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _triggerFrom = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlayMusic( _eventName, _triggerFrom );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PlayMusic( _eventName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<AkCallbackType>(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    AkCallbackType _callbackType;translator.Get(L, 2, out _callbackType);
                    System.Action _callbackAction = translator.GetDelegate<System.Action>(L, 3);
                    
                    AudioStudio.AudioManager.PlayMusic( _eventName, _callbackType, _callbackAction );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.IEnumerable<AkCallbackType>>(L, 2)&& translator.Assignable<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    System.Collections.Generic.IEnumerable<AkCallbackType> _callbackTypes = (System.Collections.Generic.IEnumerable<AkCallbackType>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable<AkCallbackType>));
                    System.Action<AkCallbackType, AkCallbackInfo> _callbackAction = translator.GetDelegate<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3);
                    
                    AudioStudio.AudioManager.PlayMusic( _eventName, _callbackTypes, _callbackAction );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PlayMusic!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StopMusic_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<UnityEngine.GameObject>(L, 1)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 2)) 
                {
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 2, out _trigger);
                    
                    AudioStudio.AudioManager.StopMusic( _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<UnityEngine.GameObject>(L, 1)) 
                {
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.StopMusic( _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 0) 
                {
                    
                    AudioStudio.AudioManager.StopMusic(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.StopMusic!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlayVoice_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _triggerFrom = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.PlayVoice( _eventName, _triggerFrom, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _triggerFrom = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PlayVoice( _eventName, _triggerFrom );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PlayVoice( _eventName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<AkCallbackType>(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    AkCallbackType _callbackType;translator.Get(L, 2, out _callbackType);
                    System.Action _callbackAction = translator.GetDelegate<System.Action>(L, 3);
                    
                    AudioStudio.AudioManager.PlayVoice( _eventName, _callbackType, _callbackAction );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Collections.Generic.IEnumerable<AkCallbackType>>(L, 2)&& translator.Assignable<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    System.Collections.Generic.IEnumerable<AkCallbackType> _callbackTypes = (System.Collections.Generic.IEnumerable<AkCallbackType>)translator.GetObject(L, 2, typeof(System.Collections.Generic.IEnumerable<AkCallbackType>));
                    System.Action<AkCallbackType, AkCallbackInfo> _callbackAction = translator.GetDelegate<System.Action<AkCallbackType, AkCallbackInfo>>(L, 3);
                    
                    AudioStudio.AudioManager.PlayVoice( _eventName, _callbackTypes, _callbackAction );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PlayVoice!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PauseVoice_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    float _fadeOutTime = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    AudioStudio.AudioManager.PauseVoice( _eventName, _fadeOutTime );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PauseVoice( _eventName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 0) 
                {
                    
                    AudioStudio.AudioManager.PauseVoice(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PauseVoice!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResumeVoice_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    float _fadeInTime = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    AudioStudio.AudioManager.ResumeVoice( _eventName, _fadeInTime );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.ResumeVoice( _eventName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 0) 
                {
                    
                    AudioStudio.AudioManager.ResumeVoice(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.ResumeVoice!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StopVoice_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.GameObject>(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    float _fadeInTime = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.GameObject _triggerFrom = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.StopVoice( _eventName, _fadeInTime, _triggerFrom, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.GameObject>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    float _fadeInTime = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.GameObject _triggerFrom = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.StopVoice( _eventName, _fadeInTime, _triggerFrom );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    float _fadeInTime = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    AudioStudio.AudioManager.StopVoice( _eventName, _fadeInTime );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.StopVoice( _eventName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 0) 
                {
                    
                    AudioStudio.AudioManager.StopVoice(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.StopVoice!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResetLastState_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.ResetLastState( _stateGroup, _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.ResetLastState( _stateGroup, _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.ResetLastState( _stateGroup );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.ResetLastState!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetState_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _stateInfo = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.SetState( _stateInfo, _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _stateInfo = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.SetState( _stateInfo, _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _stateInfo = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.SetState( _stateInfo );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    string _state = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.SetState( _stateGroup, _state, _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 3)) 
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    string _state = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.SetState( _stateGroup, _state, _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    string _state = LuaAPI.lua_tostring(L, 2);
                    
                    AudioStudio.AudioManager.SetState( _stateGroup, _state );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.SetState!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetState_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = AudioStudio.AudioManager.GetState( _stateGroup );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsStateAt_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _stateGroup = LuaAPI.lua_tostring(L, 1);
                    string _state = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = AudioStudio.AudioManager.IsStateAt( _stateGroup, _state );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetSwitch_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _switchInfo = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.SetSwitch( _switchInfo, _emitter );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _switchInfo = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.SetSwitch( _switchInfo );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    string _switchGroup = LuaAPI.lua_tostring(L, 1);
                    string _switchName = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.SetSwitch( _switchGroup, _switchName, _emitter, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 3)) 
                {
                    string _switchGroup = LuaAPI.lua_tostring(L, 1);
                    string _switchName = LuaAPI.lua_tostring(L, 2);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.SetSwitch( _switchGroup, _switchName, _emitter );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    string _switchGroup = LuaAPI.lua_tostring(L, 1);
                    string _switchName = LuaAPI.lua_tostring(L, 2);
                    
                    AudioStudio.AudioManager.SetSwitch( _switchGroup, _switchName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.SetSwitch!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetRTPCValue_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _rtpcName = LuaAPI.lua_tostring(L, 1);
                    float _value = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    AudioStudio.AudioManager.SetRTPCValue( _rtpcName, _value );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.GameObject>(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    string _parameterName = LuaAPI.lua_tostring(L, 1);
                    float _value = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.SetRTPCValue( _parameterName, _value, _emitter, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.GameObject>(L, 3)) 
                {
                    string _parameterName = LuaAPI.lua_tostring(L, 1);
                    float _value = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.SetRTPCValue( _parameterName, _value, _emitter );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _parameterName = LuaAPI.lua_tostring(L, 1);
                    float _value = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    AudioStudio.AudioManager.SetRTPCValue( _parameterName, _value );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.SetRTPCValue!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PostTrigger_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 3)) 
                {
                    string _triggerName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 3, out _trigger);
                    
                    AudioStudio.AudioManager.PostTrigger( _triggerName, _emitter, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.GameObject>(L, 2)) 
                {
                    string _triggerName = LuaAPI.lua_tostring(L, 1);
                    UnityEngine.GameObject _emitter = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.PostTrigger( _triggerName, _emitter );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _triggerName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PostTrigger( _triggerName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.PostTrigger!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadBank_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Action>(L, 2)&& translator.Assignable<UnityEngine.GameObject>(L, 3)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 4)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    System.Action _loadFinishedCallback = translator.GetDelegate<System.Action>(L, 2);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 4, out _trigger);
                    
                    AudioStudio.AudioManager.LoadBank( _bankName, _loadFinishedCallback, _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Action>(L, 2)&& translator.Assignable<UnityEngine.GameObject>(L, 3)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    System.Action _loadFinishedCallback = translator.GetDelegate<System.Action>(L, 2);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.LoadBank( _bankName, _loadFinishedCallback, _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Action>(L, 2)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    System.Action _loadFinishedCallback = translator.GetDelegate<System.Action>(L, 2);
                    
                    AudioStudio.AudioManager.LoadBank( _bankName, _loadFinishedCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.LoadBank( _bankName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.LoadBank!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnloadBank_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action>(L, 3)&& translator.Assignable<UnityEngine.GameObject>(L, 4)&& translator.Assignable<AudioStudio.Tools.AudioTriggerSource>(L, 5)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    bool _useCounter = LuaAPI.lua_toboolean(L, 2);
                    System.Action _unloadFinishedCallback = translator.GetDelegate<System.Action>(L, 3);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject));
                    AudioStudio.Tools.AudioTriggerSource _trigger;translator.Get(L, 5, out _trigger);
                    
                    AudioStudio.AudioManager.UnloadBank( _bankName, _useCounter, _unloadFinishedCallback, _source, _trigger );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action>(L, 3)&& translator.Assignable<UnityEngine.GameObject>(L, 4)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    bool _useCounter = LuaAPI.lua_toboolean(L, 2);
                    System.Action _unloadFinishedCallback = translator.GetDelegate<System.Action>(L, 3);
                    UnityEngine.GameObject _source = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.UnloadBank( _bankName, _useCounter, _unloadFinishedCallback, _source );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    bool _useCounter = LuaAPI.lua_toboolean(L, 2);
                    System.Action _unloadFinishedCallback = translator.GetDelegate<System.Action>(L, 3);
                    
                    AudioStudio.AudioManager.UnloadBank( _bankName, _useCounter, _unloadFinishedCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    bool _useCounter = LuaAPI.lua_toboolean(L, 2);
                    
                    AudioStudio.AudioManager.UnloadBank( _bankName, _useCounter );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _bankName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.UnloadBank( _bankName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.UnloadBank!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RegistMusicPlayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.GameObject _gameobj = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    
                    AudioStudio.AudioManager.RegistMusicPlayer( _gameobj );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnRegistMusicPlayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.UnRegistMusicPlayer(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SeekAndPlay_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    int _in_pos = LuaAPI.xlua_tointeger(L, 2);
                    System.Action _callback = translator.GetDelegate<System.Action>(L, 3);
                    
                    AudioStudio.AudioManager.SeekAndPlay( _eventName, _in_pos, _callback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    int _in_pos = LuaAPI.xlua_tointeger(L, 2);
                    
                    AudioStudio.AudioManager.SeekAndPlay( _eventName, _in_pos );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.SeekAndPlay( _eventName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to AudioStudio.AudioManager.SeekAndPlay!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StopMusicPlayer_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.StopMusicPlayer(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_MuteAudio_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.MuteAudio(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnmuteAudio_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.UnmuteAudio(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PauseAudio_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.PauseAudio(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ResumeAudio_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.ResumeAudio(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StartVoicePlay_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.StartVoicePlay(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EndVoicePlay_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.EndVoicePlay(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StartCustomMusic_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.StartCustomMusic(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EndCustomMusic_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    AudioStudio.AudioManager.EndCustomMusic(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PostEvent_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _eventName = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.PostEvent( _eventName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddBasePath_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _path = LuaAPI.lua_tostring(L, 1);
                    
                    AudioStudio.AudioManager.AddBasePath( _path );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetDebugLogLevel_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    AudioStudio.Tools.Severity _severity;translator.Get(L, 1, out _severity);
                    
                    AudioStudio.AudioManager.SetDebugLogLevel( _severity );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_SoundEnabled(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, AudioStudio.AudioManager.SoundEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_VoiceEnabled(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, AudioStudio.AudioManager.VoiceEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_MusicEnabled(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, AudioStudio.AudioManager.MusicEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_SoundVolume(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushnumber(L, AudioStudio.AudioManager.SoundVolume);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_VoiceVolume(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushnumber(L, AudioStudio.AudioManager.VoiceVolume);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_MusicVolume(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushnumber(L, AudioStudio.AudioManager.MusicVolume);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_VoiceLanguage(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, AudioStudio.AudioManager.VoiceLanguage);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DisableWwise(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, AudioStudio.AudioManager.DisableWwise);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_SoundEnabled(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.SoundEnabled = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_VoiceEnabled(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.VoiceEnabled = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_MusicEnabled(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.MusicEnabled = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_SoundVolume(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.SoundVolume = (float)LuaAPI.lua_tonumber(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_VoiceVolume(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.VoiceVolume = (float)LuaAPI.lua_tonumber(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_MusicVolume(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.MusicVolume = (float)LuaAPI.lua_tonumber(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_VoiceLanguage(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			AudioStudio.Languages gen_value;translator.Get(L, 1, out gen_value);
				AudioStudio.AudioManager.VoiceLanguage = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DisableWwise(RealStatePtr L)
        {
		    try {
                
			    AudioStudio.AudioManager.DisableWwise = LuaAPI.lua_toboolean(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
